<!DOCTYPE html>
<html>
<head>
   <meta charset="utf-8">
   <title>后台登录</title>
   <meta name="renderer" content="webkit">
   <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
   <meta name="viewport"
         content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
   <link rel="stylesheet" type="text/css" href="/vendor/admin/css/style.css" tppabs="/vendor/admin/css/style.css">
   <style>
      body {
         height: 100%;
         /*background: #16a085;*/
         background: #606f7b;
         overflow: hidden;
      }

      canvas {
         z-index: -1;
         position: absolute;
      }
   </style>

</head>
<body>
<dl class="admin_login">
   <dt>
      <strong style="color: #fff;">后台登录</strong>
      <em>Management System</em>
   </dt>

   <form method="post" class="am-form" action="{{ route('admin.login') }}">

      {{ csrf_field() }}
      @if($errors)
         <div style="background-color: red;text-align: center;margin-bottom: 8px;">
            <span style="color: #FFF;">{{$errors->first()}}</span>
         </div>
      @endif

      <dd class="user_icon">
         <input type="text" name="name" placeholder="请输入用户名/邮箱/手机号" value="{{old('name')}}"
                class="login_txtbx" autofocus>
      </dd>
      <dd class="pwd_icon">
         <input type="password" name="password" id="password" placeholder="请输入密码" class="login_txtbx">
      </dd>
      <dd class="val_icon">
         <div class="checkcode">
            <input type="text" id="J_codetext" name="captcha" placeholder="验证码" maxlength="4" class="login_txtbx">
            <span>
                    <img src="{{ captcha_src() }}" alt="" style="cursor: pointer"
                         onclick="this.src='{{captcha_src()}}&'+Math.random()">
                </span>
         </div>
      </dd>
      <dd>
         <input type="checkbox" name="remember {{ old('remember') ? 'checked' : '' }}">
         <span style="color: #fff;">记住密码</span>
      </dd>
      <dd>
         <input type="submit" value="立即登陆" class="submit_btn">
      </dd>

   </form>

</dl>

<script src="/js/jquery.min.js"></script>
<script src="/vendor/admin/css/verificationNumbers.js" tppabs="/vendor/admin/css/verificationNumbers.js"></script>
<script src="/vendor/admin/css/Particleground.js" tppabs="/vendor/admin/css/Particleground.js"></script>
<script>
   $(document).ready(function () {
      //粒子背景特效
      $('body').particleground({
         dotColor: '#5cbdaa',
         lineColor: '#5cbdaa'
      });
   });
</script>
</body>
</html>